<%@ Page Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="ViewBlog.aspx.cs" Inherits="ViewBlog" Title="Untitled Page" %>
<%@ Register src="../includes/myAccount.ascx" tagname="myAccount" tagprefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="Server">
       <div class="heading_inner">
        <div class="heading_topic">
            <h2>Blog</h2>
        </div>
    </div>

    <div class="cl"></div>



    <div class="account_new">

        <div class="acc_nav">
        

            <uc3:myaccount id="myAccount1" runat="server" />
        </div>




        <div class="part_1_blog">
              <div class="heading_account">
                        <h2>Welcome,</h2>
                        <h3><%=Session["LoginName"]%></h3>

            </div>
            <div class="upper_acc">

                <div class="lft_up_acc"></div>
                <div class="center_stroke_acc">
                    <div class="form_head_acc">Blog Contents</div>
                </div>
                <div class="right_up_acc"></div>
            </div>

            <div class="doc_pass_acc">


                <table align="center" cellpadding="0" cellspacing="0" border="0" style="width:100%;text-align:center;padding-left:10px">
                 
                                            <tr>
                                                <%if (DoctorName != "")
                                                  {%>
                                                <td class="headernew" style="border-bottom: 1px solid #eaeaea; padding: 5px 0;" valign="top">Blog by:<%=DoctorName%>                                                                                                                                                                     
                                                </td>
                                                <%} %>
                                                <%else
                                                  { %>
                                                <td style="color: Red; height: 11px;">No post exist of this month.
                                                </td>
                                                <%} %>
                                            </tr>
                                            <%if (DoctorName != "")
                                              {%>
                                            <tr>
                                                <td class="headernew" style="padding-right: 0px; padding-left: 0px; padding-bottom: 5px; padding-top: 5px; border-bottom: #eaeaea 1px solid"
                                                    valign="top">
                                                    <asp:GridView CssClass="normalgrey_12" AllowPaging="true" ID="grdBlogTitle" PageSize="5" runat="server" AutoGenerateColumns="False" ShowFooter="True" Width="100%" CellPadding="0" BorderWidth="0" OnPageIndexChanging="grdBlogTitle_PageIndexChanging">
                                                        <Columns>
                                                            <asp:TemplateField>
                                                                <ItemTemplate>
                                                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                        <tr>
                                                                            <td style="height: 20px;" class="headernew">
                                                                                <a href="#<%# Eval("BlogTitle").ToString()%>"><b><%# Eval("BlogTitle").ToString()%></b> </a>

                                                                            </td>
                                                                        </tr>

                                                                    </table>
                                                                </ItemTemplate>
                                                                <FooterTemplate>
                                                                </FooterTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>

                                                    </asp:GridView>
                                                </td>
                                                <td style="color: red; height: 11px"></td>
                                            </tr>
                                            <%} %>
                                            <tr>
                                                <td>
                                                    <asp:GridView ID="grdMessages" PageSize="5" runat="server" AutoGenerateColumns="False" ShowFooter="True" CssClass="normalgrey_12" Width="100%" AllowPaging="True" OnPageIndexChanging="grdMessages_PageIndexChanging" CellPadding="0" BorderWidth="0">
                                                        <Columns>
                                                            <asp:TemplateField>
                                                                <ItemTemplate>
                                                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                        <tr>
                                                                            <td class="headernew" style="height: 25px;">
                                                                                <b><%# Eval("BlogTitle").ToString()%></b> <a name='<%# Eval("BlogTitle").ToString()%>' style="visibility: hidden;" class="headernew"><b><%# Eval("BlogTitle").ToString()%></b></a>

                                                                            </td>
                                                                        </tr>
                                                                        <tr style="height: 25px;">
                                                                            <td>Posted Date: <b><%# Eval("blogPostedDate").ToString()%></b>
                                                                            </td>
                                                                        </tr>
                                                                        <tr style="height: 15px;">
                                                                            <td>&nbsp;</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                <%# Server.HtmlDecode(Eval("BlogMessage").ToString())%> &nbsp;&nbsp;<a href="<%=strURL%>/<%#lfunction.GetBlogTitle(strURlDoctorname)%>/<%#Eval("blogid")%>-<%#lfunction.GetBlogTitle(Eval("BlogTitleURL").ToString())%>.aspx">More.. </a>

                                                                            </td>
                                                                        </tr>
                                                                        <tr style="height: 20px;">
                                                                            <td>&nbsp;</td>
                                                                        </tr>
                                                                    </table>
                                                                </ItemTemplate>
                                                                <FooterTemplate>
                                                                </FooterTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <RowStyle HorizontalAlign="Left" />
                                                        <FooterStyle HorizontalAlign="Left" />
                                                        <AlternatingRowStyle Wrap="True" />
                                                        <HeaderStyle Wrap="False" />
                                                        <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NextPreviousFirstLast"
                                                            NextPageText=" Next" PreviousPageText="Previous" />
                                                    </asp:GridView>
                                                </td>
                                            </tr>

                                        </table>

            </div>
        </div>
    </div>
    
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="FeatureDocBox" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ScriptContent" runat="Server">
</asp:Content>
